package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_finance].[dbo].TCW_FinancesEventGroups", catalog="Id")
public class TcwFinancesEventGroups extends BaseEntity<TcwFinancesEventGroups> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="FinancialEventGroupId", nameJava="financialEventGroupId", typeDataBase="varchar")
	private String financialEventGroupId;
	@YsField(nameDataBase="CurrencyCode", nameJava="currencyCode", typeDataBase="varchar")
	private String currencyCode;
	@YsField(nameDataBase="RegionCode", nameJava="regionCode", typeDataBase="varchar")
	private String regionCode;
	@YsField(nameDataBase="ShopName", nameJava="shopName", typeDataBase="varchar")
	private String shopName;
	@YsField(nameDataBase="MarketplaceName", nameJava="marketplaceName", typeDataBase="varchar")
	private String marketplaceName;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="StartDate", nameJava="startDate", typeDataBase="datetime")
	private Date startDate;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="EndDate", nameJava="endDate", typeDataBase="datetime")
	private Date endDate;
	@YsField(nameDataBase="CurrencyAmount", nameJava="currencyAmount", typeDataBase="decimal")
	private BigDecimal currencyAmount;
	@YsField(nameDataBase="XjCurrencyAmount", nameJava="xjCurrencyAmount", typeDataBase="decimal")
	private BigDecimal xjCurrencyAmount;
	@YsField(nameDataBase="ReserveCredit", nameJava="reserveCredit", typeDataBase="decimal")
	private BigDecimal reserveCredit;
	@YsField(nameDataBase="ReserveDebit", nameJava="reserveDebit", typeDataBase="decimal")
	private BigDecimal reserveDebit;
	@YsField(nameDataBase="TwoCurrencyAmount", nameJava="twoCurrencyAmount", typeDataBase="decimal")
	private BigDecimal twoCurrencyAmount;
	@YsField(nameDataBase="ShopNameMc", nameJava="shopNameMc", typeDataBase="varchar")
	private String shopNameMc;
	@YsField(nameDataBase="ShopGuid", nameJava="shopGuid", typeDataBase="varchar")
	private String shopGuid;
	@YsField(nameDataBase="ShopId", nameJava="shopId", typeDataBase="varchar")
	private String shopId;
	@YsField(nameDataBase="CompanyID", nameJava="companyID", typeDataBase="varchar")
	private String companyID;
	@YsField(nameDataBase="ConvertedTotal", nameJava="convertedTotal", typeDataBase="decimal")
	private BigDecimal convertedTotal;
	@YsField(nameDataBase="Currency", nameJava="currency", typeDataBase="varchar")
	private String currency;
	@YsField(nameDataBase="AStatus", nameJava="aStatus", typeDataBase="varchar")
	private String aStatus;
	@YsField(nameDataBase="TransactionNum", nameJava="transactionNum", typeDataBase="varchar")
	private String transactionNum;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwFinancesEventGroups setId(Long id) {
		this.id = id;
		return this;
	}
	public String getFinancialEventGroupId() {
		return financialEventGroupId;
	}
	public TcwFinancesEventGroups setFinancialEventGroupId(String financialEventGroupId) {
		this.financialEventGroupId = financialEventGroupId;
		return this;
	}
	public String getCurrencyCode() {
		return currencyCode;
	}
	public TcwFinancesEventGroups setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
		return this;
	}
	public String getRegionCode() {
		return regionCode;
	}
	public TcwFinancesEventGroups setRegionCode(String regionCode) {
		this.regionCode = regionCode;
		return this;
	}
	public String getShopName() {
		return shopName;
	}
	public TcwFinancesEventGroups setShopName(String shopName) {
		this.shopName = shopName;
		return this;
	}
	public String getMarketplaceName() {
		return marketplaceName;
	}
	public TcwFinancesEventGroups setMarketplaceName(String marketplaceName) {
		this.marketplaceName = marketplaceName;
		return this;
	}
	public Date getStartDate() {
		return startDate;
	}
	public TcwFinancesEventGroups setStartDate(Date startDate) {
		this.startDate = startDate;
		return this;
	}
	public Date getEndDate() {
		return endDate;
	}
	public TcwFinancesEventGroups setEndDate(Date endDate) {
		this.endDate = endDate;
		return this;
	}
	public BigDecimal getCurrencyAmount() {
		return currencyAmount;
	}
	public TcwFinancesEventGroups setCurrencyAmount(BigDecimal currencyAmount) {
		this.currencyAmount = currencyAmount;
		return this;
	}
	public BigDecimal getXjCurrencyAmount() {
		return xjCurrencyAmount;
	}
	public TcwFinancesEventGroups setXjCurrencyAmount(BigDecimal xjCurrencyAmount) {
		this.xjCurrencyAmount = xjCurrencyAmount;
		return this;
	}
	public BigDecimal getReserveCredit() {
		return reserveCredit;
	}
	public TcwFinancesEventGroups setReserveCredit(BigDecimal reserveCredit) {
		this.reserveCredit = reserveCredit;
		return this;
	}
	public BigDecimal getReserveDebit() {
		return reserveDebit;
	}
	public TcwFinancesEventGroups setReserveDebit(BigDecimal reserveDebit) {
		this.reserveDebit = reserveDebit;
		return this;
	}
	public BigDecimal getTwoCurrencyAmount() {
		return twoCurrencyAmount;
	}
	public TcwFinancesEventGroups setTwoCurrencyAmount(BigDecimal twoCurrencyAmount) {
		this.twoCurrencyAmount = twoCurrencyAmount;
		return this;
	}
	public String getShopNameMc() {
		return shopNameMc;
	}
	public TcwFinancesEventGroups setShopNameMc(String shopNameMc) {
		this.shopNameMc = shopNameMc;
		return this;
	}
	public String getShopGuid() {
		return shopGuid;
	}
	public TcwFinancesEventGroups setShopGuid(String shopGuid) {
		this.shopGuid = shopGuid;
		return this;
	}
	public String getShopId() {
		return shopId;
	}
	public TcwFinancesEventGroups setShopId(String shopId) {
		this.shopId = shopId;
		return this;
	}
	public String getCompanyID() {
		return companyID;
	}
	public TcwFinancesEventGroups setCompanyID(String companyID) {
		this.companyID = companyID;
		return this;
	}
	public BigDecimal getConvertedTotal() {
		return convertedTotal;
	}
	public TcwFinancesEventGroups setConvertedTotal(BigDecimal convertedTotal) {
		this.convertedTotal = convertedTotal;
		return this;
	}
	public String getCurrency() {
		return currency;
	}
	public TcwFinancesEventGroups setCurrency(String currency) {
		this.currency = currency;
		return this;
	}
	public String getAStatus() {
		return aStatus;
	}
	public TcwFinancesEventGroups setAStatus(String aStatus) {
		this.aStatus = aStatus;
		return this;
	}
	public String getTransactionNum() {
		return transactionNum;
	}
	public TcwFinancesEventGroups setTransactionNum(String transactionNum) {
		this.transactionNum = transactionNum;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwFinancesEventGroups setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwFinancesEventGroups setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwFinancesEventGroups setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwFinancesEventGroups tcwFinancesEventGroups(
		String financialEventGroupId,
		String currencyCode,
		String regionCode,
		String shopName,
		String marketplaceName,
		Date startDate,
		Date endDate,
		BigDecimal currencyAmount,
		BigDecimal xjCurrencyAmount,
		BigDecimal reserveCredit,
		BigDecimal reserveDebit,
		BigDecimal twoCurrencyAmount,
		String shopNameMc,
		String shopGuid,
		String shopId,
		String companyID,
		BigDecimal convertedTotal,
		String currency,
		String aStatus,
		String transactionNum,
		Integer status
			) {
		TcwFinancesEventGroups entity = new TcwFinancesEventGroups();
		entity.setFinancialEventGroupId(financialEventGroupId);
		entity.setCurrencyCode(currencyCode);
		entity.setRegionCode(regionCode);
		entity.setShopName(shopName);
		entity.setMarketplaceName(marketplaceName);
		entity.setStartDate(startDate);
		entity.setEndDate(endDate);
		entity.setCurrencyAmount(currencyAmount);
		entity.setXjCurrencyAmount(xjCurrencyAmount);
		entity.setReserveCredit(reserveCredit);
		entity.setReserveDebit(reserveDebit);
		entity.setTwoCurrencyAmount(twoCurrencyAmount);
		entity.setShopNameMc(shopNameMc);
		entity.setShopGuid(shopGuid);
		entity.setShopId(shopId);
		entity.setCompanyID(companyID);
		entity.setConvertedTotal(convertedTotal);
		entity.setCurrency(currency);
		entity.setAStatus(aStatus);
		entity.setTransactionNum(transactionNum);
		entity.setStatus(status);
		return entity;
	}
}